function lst = vertcat(lst1, varargin)
%VERTCAT Concatenates multiple lists into one
%
% [ Syntax ]
%   - lst = [lst1; lst2; lst3; ...]
%   - lst = vertcat(lst1, lst2, lst3, ...)
%
% [ History ]
%   - Created by Dahua Lin, on Jan 5, 2008
%

if nargin == 1
    lst = lst1;
    return;
    
else
    te = length(lst1);
    for i = 1 : length(varargin)
        te = te + length(varargin{i});
    end
    
    C = cell(te, 1);
    
    ne = length(lst1);
    C(1:ne) = cell(lst1);
    
    for i = 1 : length(varargin)
        cl = varargin{i};
        C(ne+1 : ne+length(cl)) = cell(cl);
        ne = ne + length(cl);
    end
    
end

lst = sllist(C);
    